package com.hmall.item.mapper;

import com.hmall.item.pojo.Item;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author lijian
 * @description 针对表【tb_item(商品表)】的数据库操作Mapper
 * @createDate 2022-07-20 16:46:09
 * @Entity com.hmall.item.pojo.TbItem
 */
@Mapper
public interface TbItemMapper extends BaseMapper<Item> {

    @Update("update tb_item set status = #{status} where id = #{id}")
    int updateStatusById(@Param("id") Long id,
                         @Param("status") Integer status);

}




